package com.sojoys.artifact.manager;

import com.sojoys.artifact.factory.json.FastJsonFactory;
import com.sojoys.artifact.factory.json.IJson;
import com.sojoys.artifact.factory.json.IJsonFactory;

public class JsonManager {
	
	private JsonManager() {
	}

	private static JsonManager ME = new JsonManager();

	public static JsonManager me() {
		return ME;
	}
	
	private IJsonFactory factory = new FastJsonFactory();

	public void setFactory(IJsonFactory factory) {
		this.factory = factory;
	}

	public IJson getJson() {
		return this.factory.getJson();
	}
}
